package com.java.demo.component;

import com.java.demo.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class UserBean2 {

    @Bean
    public User user111() {
        User user = new User();
        user.setId(1);
        user.setUsername("zhang3");
        return user;
    }
}
